package com.station.administrators.service.impl;

import com.station.administrators.dao.JournalismDao;
import com.open.capacity.common.model.JournalismModel;
import com.station.administrators.service.JournalismService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author YangGang
 * @Title:
 * @Description: TODO
 * @date 2021/6/29/10:31
 */
@Service
public class JournalismServiceImpl implements JournalismService {
    @Autowired
    private JournalismDao journalismDao;

    @Override
    public void add(JournalismModel journalism) {
        journalismDao.add(journalism);
    }

    @Override
    public void update(JournalismModel journalism) {
        journalismDao.update(journalism);
    }

    @Override
    public void delete(Long id) {
        journalismDao.delete(id);
    }

    @Override
    public JournalismModel findById(Long id) {
        return journalismDao.findById(id);
    }

    @Override
    public List<JournalismModel> findAll(JournalismModel journalism) {
        return journalismDao.findAll(journalism);
    }

    @Override
    public Integer getCount(JournalismModel journalism) {
        return journalismDao.getCount(journalism);
    }
}
